#include"../inc/HttpServer.h"
#include<iostream>

#include<unistd.h>
#include<sys/socket.h>
#include<arpa/inet.h>



namespace http_server
{
    HttpServer::HttpServer(const size_t port)
    : _accept(port), _epoll(_accept)
    {}

    HttpServer::HttpServer(const string& ip, const size_t port)
    : _accept(ip, port), _epoll(_accept)
    {}

    void HttpServer::start()
    {
        _accept.Start();
        _epoll.Loop();
    }
}

